home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-4.ISO / Files IV / Prog / T / TinyTools-2.sit / TinyTools / FPScroll.h < prev    next >
MacBinary  |  1997-10-07  |  5.3 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Oct 7 02:48:09 1997, modified Tue Oct 7 02:48:09 1997, creator 'MPS ', type ASCII, 4685 bytes "FPScroll.h" , at 0x12cd 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default
100% librempegprobeID NGC (Nintendo DSP Standard) (ngcdspstd) default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 46 50 53 63 72 6f | 6c 6c 2e 68 00 00 00 00 |..FPScro|ll.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 12 4d 00 | 00 01 ac b0 5f 8b a9 b0 |......M.|...._...|
|00000060| 5f 8b a9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |_.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 79 3c 00 00 |........|....y<..|
|00000080| 0d 0d 23 69 66 6e 64 65 | 66 20 5f 5f 46 50 53 43 |..#ifnde|f __FPSC|
|00000090| 52 4f 4c 4c 5f 5f 0d 23 | 64 65 66 69 6e 65 20 5f |ROLL__.#|define _|
|000000a0| 5f 46 50 53 43 52 4f 4c | 4c 5f 5f 0d 0d 23 69 6e |_FPSCROL|L__..#in|
|000000b0| 63 6c 75 64 65 20 3c 54 | 79 70 65 73 2e 68 3e 0d |clude <T|ypes.h>.|
|000000c0| 23 69 6e 63 6c 75 64 65 | 20 3c 51 75 69 63 6b 44 |#include| <QuickD|
|000000d0| 72 61 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |raw.h>.#|include |
|000000e0| 3c 57 69 6e 64 6f 77 73 | 2e 68 3e 0d 23 69 6e 63 |<Windows|.h>.#inc|
|000000f0| 6c 75 64 65 20 3c 43 6f | 6e 74 72 6f 6c 73 2e 68 |lude <Co|ntrols.h|
|00000100| 3e 0d 0d 2f 2a 20 66 69 | 6c 65 20 46 50 53 63 72 |>../* fi|le FPScr|
|00000110| 6f 6c 6c 2e 68 0d 09 52 | 6f 75 74 69 6e 65 73 20 |oll.h..R|outines |
|00000120| 66 6f 72 20 75 73 69 6e | 67 20 74 68 65 20 73 74 |for usin|g the st|
|00000130| 61 6e 64 61 72 64 20 73 | 63 72 6f 6c 6c 20 62 61 |andard s|croll ba|
|00000140| 72 73 20 77 69 74 68 20 | 66 6c 6f 61 74 69 6e 67 |rs with |floating|
|00000150| 0d 09 70 6f 69 6e 74 20 | 6e 75 6d 62 65 72 73 20 |..point |numbers |
|00000160| 70 72 6f 76 69 64 69 6e | 67 20 73 63 72 6f 6c 6c |providin|g scroll|
|00000170| 69 6e 67 20 61 63 63 72 | 6f 73 73 20 74 68 65 20 |ing accr|oss the |
|00000180| 72 61 6e 67 65 20 6f 66 | 0d 09 66 6c 6f 61 74 2c |range of|..float,|
|00000190| 20 64 6f 75 62 6c 65 2c | 20 6f 72 20 77 68 61 74 | double,| or what|
|000001a0| 65 76 65 72 2e 2e 2e 0d | 09 43 6f 70 79 72 69 67 |ever....|.Copyrig|
|000001b0| 68 74 20 28 63 29 20 31 | 39 39 37 20 62 79 20 4a |ht (c) 1|997 by J|
|000001c0| 6f 68 6e 20 4d 6f 6e 74 | 62 72 69 61 6e 64 2e 20 |ohn Mont|briand. |
|000001d0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000001e0| 72 76 65 64 2e 0d 09 50 | 65 72 6d 69 73 73 69 6f |rved...P|ermissio|
|000001f0| 6e 20 67 72 61 6e 74 65 | 64 20 66 6f 72 20 70 75 |n grante|d for pu|
|00000200| 62 6c 69 63 20 75 73 65 | 2e 0d 09 44 69 73 74 72 |blic use|...Distr|
|00000210| 69 62 75 74 65 20 66 72 | 65 65 6c 79 20 69 6e 20 |ibute fr|eely in |
|00000220| 61 72 65 61 73 20 77 68 | 65 72 65 20 74 68 65 20 |areas wh|ere the |
|00000230| 6c 61 77 73 20 6f 66 20 | 63 6f 70 79 72 69 67 68 |laws of |copyrigh|
|00000240| 74 20 61 70 70 6c 79 2e | 0d 09 55 53 45 20 41 54 |t apply.|..USE AT|
|00000250| 20 59 4f 55 52 20 4f 57 | 4e 20 52 49 53 4b 2e 0d | YOUR OW|N RISK..|
|00000260| 09 44 4f 20 4e 4f 54 20 | 44 49 53 54 52 49 42 55 |.DO NOT |DISTRIBU|
|00000270| 54 45 20 4d 4f 44 49 46 | 49 45 44 20 43 4f 50 49 |TE MODIF|IED COPI|
|00000280| 45 53 2e 0d 09 43 6f 6d | 6d 65 6e 74 73 2f 71 75 |ES...Com|ments/qu|
|00000290| 65 73 74 69 6f 6e 73 2f | 70 6f 73 74 63 61 72 64 |estions/|postcard|
|000002a0| 73 20 74 6f 20 74 68 65 | 20 61 75 74 68 6f 72 20 |s to the| author |
|000002b0| 61 74 20 74 68 65 20 61 | 64 64 72 65 73 73 3a 0d |at the a|ddress:.|
|000002c0| 09 09 4a 6f 68 6e 20 4d | 6f 6e 74 62 72 69 61 6e |..John M|ontbrian|
|000002d0| 64 0d 09 09 50 2e 4f 2e | 20 42 6f 78 2e 20 31 31 |d...P.O.| Box. 11|
|000002e0| 33 33 0d 09 09 53 61 73 | 6b 61 74 6f 6f 6e 20 53 |33...Sas|katoon S|
|000002f0| 61 73 6b 61 74 63 68 65 | 77 61 6e 20 43 61 6e 61 |askatche|wan Cana|
|00000300| 64 61 0d 09 09 53 37 4b | 20 33 4e 32 0d 09 6f 72 |da...S7K| 3N2..or|
|00000310| 20 62 79 20 65 6d 61 69 | 6c 20 61 74 3a 0d 09 09 | by emai|l at:...|
|00000320| 74 69 6e 79 6a 6f 68 6e | 40 73 6b 2e 73 79 6d 70 |tinyjohn|@sk.symp|
|00000330| 61 74 69 63 6f 2e 63 61 | 0d 09 49 66 20 79 6f 75 |atico.ca|..If you|
|00000340| 20 77 6f 75 6c 64 20 6c | 69 6b 65 20 74 6f 20 68 | would l|ike to h|
|00000350| 61 76 65 3a 0d 09 09 74 | 65 63 68 6e 69 63 61 6c |ave:...t|echnical|
|00000360| 20 73 75 70 70 6f 72 74 | 20 72 65 67 61 72 64 69 | support| regardi|
|00000370| 6e 67 20 74 68 69 73 20 | 66 69 6c 65 2c 20 73 65 |ng this |file, se|
|00000380| 6e 64 20 61 20 70 6f 73 | 74 63 61 72 64 2e 0d 09 |nd a pos|tcard...|
|00000390| 73 65 65 20 61 6c 73 6f | 3a 0d 09 09 68 74 74 70 |see also|:...http|
|000003a0| 3a 2f 2f 77 77 77 33 2e | 73 6b 2e 73 79 6d 70 61 |://www3.|sk.sympa|
|000003b0| 74 69 63 6f 2e 63 61 2f | 74 69 6e 79 6a 6f 68 6e |tico.ca/|tinyjohn|
|000003c0| 0d 0d 09 46 50 53 63 72 | 6f 6c 6c 20 62 61 72 73 |...FPScr|oll bars|
|000003d0| 20 70 72 6f 76 69 64 65 | 20 61 6e 20 69 6e 74 65 | provide| an inte|
|000003e0| 72 66 61 63 65 20 74 6f | 20 74 68 65 20 6d 61 63 |rface to| the mac|
|000003f0| 69 6e 74 6f 73 68 20 73 | 63 72 6f 6c 6c 20 62 61 |intosh s|croll ba|
|00000400| 72 73 0d 09 61 6c 6c 6f | 77 69 6e 67 20 61 20 72 |rs..allo|wing a r|
|00000410| 61 6e 67 65 20 6f 66 20 | 76 61 6c 75 65 73 20 74 |ange of |values t|
|00000420| 6f 20 62 65 20 72 65 70 | 72 65 73 65 6e 74 65 64 |o be rep|resented|
|00000430| 20 77 69 74 68 69 6e 20 | 74 68 65 20 61 6c 6c 6f | within |the allo|
|00000440| 77 61 62 6c 65 20 72 61 | 6e 67 65 0d 09 6f 66 20 |wable ra|nge..of |
|00000450| 74 68 65 20 66 6c 6f 61 | 74 20 66 6c 6f 61 74 69 |the floa|t floati|
|00000460| 6e 67 20 70 6f 69 6e 74 | 20 74 79 70 65 2e 20 20 |ng point| type. |
|00000470| 41 20 72 65 66 65 72 65 | 6e 63 65 20 69 73 20 6d |A refere|nce is m|
|00000480| 61 69 6e 74 61 69 6e 65 | 64 20 74 6f 20 61 6e 0d |aintaine|d to an.|
|00000490| 09 69 6e 74 65 72 6e 61 | 6c 20 73 74 72 75 63 74 |.interna|l struct|
|000004a0| 75 72 65 20 75 73 65 64 | 20 62 79 20 74 68 65 73 |ure used| by thes|
|000004b0| 65 20 72 6f 75 74 69 6e | 65 73 20 69 6e 20 74 68 |e routin|es in th|
|000004c0| 65 20 63 6f 6e 74 72 6f | 6c 27 73 20 72 65 66 63 |e contro|l's refc|
|000004d0| 6f 6e 0d 09 66 69 65 6c | 64 2c 20 73 6f 20 79 6f |on..fiel|d, so yo|
|000004e0| 75 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 75 73 65 |u should| not use|
|000004f0| 20 74 68 61 74 20 66 69 | 65 6c 64 20 79 6f 75 72 | that fi|eld your|
|00000500| 73 65 6c 66 2e 20 20 49 | 66 20 73 75 63 68 20 66 |self. I|f such f|
|00000510| 75 6e 63 74 69 6f 6e 61 | 6c 69 74 79 0d 09 69 73 |unctiona|lity..is|
|00000520| 20 72 65 71 75 69 72 65 | 64 2c 20 75 73 65 20 74 | require|d, use t|
|00000530| 68 65 20 47 65 74 46 50 | 43 74 6c 52 65 66 65 72 |he GetFP|CtlRefer|
|00000540| 65 6e 63 65 20 61 6e 64 | 20 47 65 74 46 50 43 74 |ence and| GetFPCt|
|00000550| 6c 52 65 66 65 72 65 6e | 63 65 0d 09 69 6e 73 74 |lReferen|ce..inst|
|00000560| 65 61 64 2e 20 20 54 68 | 65 20 61 63 74 75 61 6c |ead. Th|e actual|
|00000570| 20 63 6f 6e 74 72 6f 6c | 20 76 61 6c 75 65 20 69 | control| value i|
|00000580| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 69 73 20 73 74 |nformati|on is st|
|00000590| 6f 72 65 64 20 69 6e 20 | 61 20 70 72 69 76 61 74 |ored in |a privat|
|000005a0| 65 0d 09 73 74 72 75 63 | 74 75 72 65 2c 20 61 6e |e..struc|ture, an|
|000005b0| 64 20 74 68 65 20 6d 61 | 63 69 6e 74 6f 73 68 20 |d the ma|cintosh |
|000005c0| 73 63 72 6f 6c 6c 20 62 | 61 72 20 69 73 20 75 73 |scroll b|ar is us|
|000005d0| 65 64 20 66 6f 72 20 64 | 69 73 70 6c 61 79 20 61 |ed for d|isplay a|
|000005e0| 6e 64 0d 09 69 6e 74 65 | 72 61 63 74 69 6f 6e 20 |nd..inte|raction |
|000005f0| 70 75 72 70 6f 73 65 73 | 20 6f 6e 6c 79 2e 0d 2a |purposes| only..*|
|00000600| 2f 0d 0d 2f 2a 20 6b 46 | 50 53 63 72 6f 6c 6c 50 |/../* kF|PScrollP|
|00000610| 6f 73 69 74 69 6f 6e 73 | 20 64 65 74 65 72 6d 69 |ositions| determi|
|00000620| 6e 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |nes the |number o|
|00000630| 66 20 70 6f 73 69 74 69 | 6f 6e 73 20 70 72 6f 76 |f positi|ons prov|
|00000640| 69 64 65 64 0d 09 66 6f | 72 20 74 68 65 20 61 63 |ided..fo|r the ac|
|00000650| 74 75 61 6c 20 73 63 72 | 6f 6c 6c 20 62 61 72 27 |tual scr|oll bar'|
|00000660| 73 20 64 69 73 70 6c 61 | 79 20 6f 66 20 76 61 6c |s displa|y of val|
|00000670| 75 65 73 2e 20 20 46 50 | 20 76 61 6c 75 65 73 20 |ues. FP| values |
|00000680| 61 6e 64 0d 09 74 68 65 | 69 72 20 72 61 6e 67 65 |and..the|ir range|
|00000690| 20 61 72 65 20 6d 61 70 | 70 65 64 20 74 6f 20 30 | are map|ped to 0|
|000006a0| 2e 2e 6b 46 50 53 63 72 | 6f 6c 6c 50 6f 73 69 74 |..kFPScr|ollPosit|
|000006b0| 69 6f 6e 73 20 62 65 66 | 6f 72 65 20 74 68 65 0d |ions bef|ore the.|
|000006c0| 09 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 73 63 |.value o|f the sc|
|000006d0| 72 6f 6c 6c 20 62 61 72 | 20 69 73 20 73 65 74 2e |roll bar| is set.|
|000006e0| 20 69 2e 65 2e 20 54 68 | 65 20 73 63 72 6f 6c 6c | i.e. Th|e scroll|
|000006f0| 20 62 61 72 20 6f 6e 20 | 74 68 65 20 73 63 72 65 | bar on |the scre|
|00000700| 65 6e 0d 09 75 73 65 73 | 20 76 61 6c 75 65 73 20 |en..uses| values |
|00000710| 30 2e 2e 6b 46 50 53 63 | 72 6f 6c 6c 50 6f 73 69 |0..kFPSc|rollPosi|
|00000720| 74 69 6f 6e 73 2c 20 77 | 68 69 6c 65 20 74 68 65 |tions, w|hile the|
|00000730| 20 69 6e 74 65 72 6e 61 | 6c 20 73 74 72 75 63 74 | interna|l struct|
|00000740| 75 72 65 73 0d 09 75 73 | 65 20 77 68 61 74 65 76 |ures..us|e whatev|
|00000750| 65 72 20 72 61 6e 67 65 | 20 6f 66 20 76 61 6c 75 |er range| of valu|
|00000760| 65 73 20 61 72 65 20 70 | 72 6f 76 69 64 65 64 20 |es are p|rovided |
|00000770| 74 6f 20 74 68 65 20 66 | 6c 6f 61 74 20 73 63 72 |to the f|loat scr|
|00000780| 6f 6c 6c 0d 09 62 61 72 | 20 72 6f 75 74 69 6e 65 |oll..bar| routine|
|00000790| 73 2e 20 20 50 72 65 73 | 65 6e 74 6c 79 20 74 68 |s. Pres|ently th|
|000007a0| 65 20 76 61 6c 75 65 20 | 69 73 20 35 30 30 30 2c |e value |is 5000,|
|000007b0| 20 61 6c 6c 6f 77 69 6e | 67 20 66 6f 72 20 35 30 | allowin|g for 50|
|000007c0| 30 30 0d 09 74 68 75 6d | 62 20 70 6f 73 69 74 69 |00..thum|b positi|
|000007d0| 6f 6e 73 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |ons on t|he scree|
|000007e0| 6e 2e 20 20 41 6e 79 20 | 76 61 6c 75 65 20 6f 76 |n. Any |value ov|
|000007f0| 65 72 20 36 30 30 20 73 | 68 6f 75 6c 64 20 62 65 |er 600 s|hould be|
|00000800| 20 6f 6b 2c 0d 09 61 73 | 20 6d 6f 73 74 20 73 63 | ok,..as| most sc|
|00000810| 72 65 65 6e 73 20 77 69 | 6c 6c 20 6e 6f 74 20 61 |reens wi|ll not a|
|00000820| 63 63 6f 6d 6f 64 61 74 | 65 20 77 69 6e 64 6f 77 |ccomodat|e window|
|00000830| 27 73 20 6f 76 65 72 20 | 36 30 30 20 70 69 78 65 |'s over |600 pixe|
|00000840| 6c 73 0d 09 68 69 67 68 | 2e 20 20 2a 2f 0d 23 64 |ls..high|. */.#d|
|00000850| 65 66 69 6e 65 20 6b 46 | 50 53 63 72 6f 6c 6c 50 |efine kF|PScrollP|
|00000860| 6f 73 69 74 69 6f 6e 73 | 20 35 30 30 30 0d 0d 2f |ositions| 5000../|
|00000870| 2a 20 4e 65 77 46 50 53 | 63 72 6f 6c 6c 42 61 72 |* NewFPS|crollBar|
|00000880| 20 63 72 65 61 74 65 73 | 20 61 20 6e 65 77 20 66 | creates| a new f|
|00000890| 6c 6f 61 74 20 73 63 72 | 6f 6c 6c 20 62 61 72 20 |loat scr|oll bar |
|000008a0| 69 6e 20 74 68 65 20 69 | 6e 64 69 63 61 74 65 64 |in the i|ndicated|
|000008b0| 20 77 69 6e 64 6f 77 0d | 09 77 69 74 68 20 74 68 | window.|.with th|
|000008c0| 65 20 67 69 76 65 6e 20 | 63 6f 6f 72 64 69 6e 61 |e given |coordina|
|000008d0| 74 65 73 2e 20 20 54 68 | 65 20 61 63 74 69 6f 6e |tes. Th|e action|
|000008e0| 70 72 6f 63 20 70 72 6f | 76 69 64 65 64 20 77 69 |proc pro|vided wi|
|000008f0| 6c 6c 20 62 65 20 63 61 | 6c 6c 65 64 20 0d 09 61 |ll be ca|lled ..a|
|00000900| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 64 75 72 |utomatic|ally dur|
|00000910| 69 6e 67 20 54 72 61 63 | 6b 46 50 43 6f 6e 74 72 |ing Trac|kFPContr|
|00000920| 6f 6c 20 63 61 6c 6c 73 | 2e 20 20 59 6f 75 72 20 |ol calls|. Your |
|00000930| 61 63 74 69 6f 6e 70 72 | 6f 63 20 73 68 6f 75 6c |actionpr|oc shoul|
|00000940| 64 0d 09 75 73 65 20 74 | 68 65 20 47 65 74 46 50 |d..use t|he GetFP|
|00000950| 43 74 6c 56 61 6c 75 65 | 20 61 6e 64 20 53 65 74 |CtlValue| and Set|
|00000960| 46 50 43 74 6c 56 61 6c | 75 65 20 72 6f 75 74 69 |FPCtlVal|ue routi|
|00000970| 6e 65 73 20 69 6e 20 63 | 61 6c 63 75 6c 61 74 69 |nes in c|alculati|
|00000980| 6e 67 0d 09 6e 65 77 20 | 76 61 6c 75 65 73 20 66 |ng..new |values f|
|00000990| 6f 72 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 20 72 |or the c|ontrol r|
|000009a0| 61 74 68 65 72 20 74 68 | 61 6e 20 74 68 65 20 73 |ather th|an the s|
|000009b0| 79 73 74 65 6d 27 73 20 | 47 65 74 43 74 6c 56 61 |ystem's |GetCtlVa|
|000009c0| 6c 75 65 20 61 6e 64 0d | 09 53 65 74 43 74 6c 56 |lue and.|.SetCtlV|
|000009d0| 61 6c 75 65 20 72 6f 75 | 74 69 6e 65 73 2e 20 20 |alue rou|tines. |
|000009e0| 2a 2f 0d 74 79 70 65 64 | 65 66 20 76 6f 69 64 20 |*/.typed|ef void |
|000009f0| 28 2a 46 50 53 63 72 6f | 6c 6c 41 63 74 69 6f 6e |(*FPScro|llAction|
|00000a00| 50 72 6f 63 29 28 43 6f | 6e 74 72 6f 6c 48 61 6e |Proc)(Co|ntrolHan|
|00000a10| 64 6c 65 20 74 68 65 43 | 6f 6e 74 72 6f 6c 2c 20 |dle theC|ontrol, |
|00000a20| 73 68 6f 72 74 20 70 61 | 72 74 43 6f 64 65 2c 20 |short pa|rtCode, |
|00000a30| 6c 6f 6e 67 20 72 65 66 | 65 72 65 6e 63 65 29 3b |long ref|erence);|
|00000a40| 0d 43 6f 6e 74 72 6f 6c | 48 61 6e 64 6c 65 20 4e |.Control|Handle N|
|00000a50| 65 77 46 50 53 63 72 6f | 6c 6c 42 61 72 28 57 69 |ewFPScro|llBar(Wi|
|00000a60| 6e 64 6f 77 50 74 72 20 | 77 70 2c 20 52 65 63 74 |ndowPtr |wp, Rect|
|00000a70| 2a 20 62 6f 78 2c 20 46 | 50 53 63 72 6f 6c 6c 41 |* box, F|PScrollA|
|00000a80| 63 74 69 6f 6e 50 72 6f | 63 20 61 63 74 69 6f 6e |ctionPro|c action|
|00000a90| 29 3b 0d 0d 2f 2a 20 44 | 69 73 70 6f 73 65 46 50 |);../* D|isposeFP|
|00000aa0| 53 63 72 6f 6c 6c 42 61 | 72 20 64 69 73 70 6f 73 |ScrollBa|r dispos|
|00000ab0| 65 73 20 6f 66 20 74 68 | 65 20 73 63 72 6f 6c 6c |es of th|e scroll|
|00000ac0| 20 62 61 72 20 61 6e 64 | 20 61 6e 79 20 69 6e 74 | bar and| any int|
|00000ad0| 65 72 6e 61 6c 20 73 74 | 72 75 63 74 75 72 65 73 |ernal st|ructures|
|00000ae0| 0d 09 63 72 65 61 74 65 | 64 20 62 79 20 4e 65 77 |..create|d by New|
|00000af0| 46 50 53 63 72 6f 6c 6c | 42 61 72 2e 20 59 6f 75 |FPScroll|Bar. You|
|00000b00| 20 73 68 6f 75 6c 64 20 | 63 61 6c 6c 20 74 68 69 | should |call thi|
|00000b10| 73 20 72 6f 75 74 69 6e | 65 20 69 6e 73 74 65 61 |s routin|e instea|
|00000b20| 64 20 6f 66 0d 09 63 61 | 6c 6c 69 6e 67 20 44 69 |d of..ca|lling Di|
|00000b30| 73 70 6f 73 65 43 6f 6e | 74 72 6f 6c 20 6f 72 20 |sposeCon|trol or |
|00000b40| 4b 69 6c 6c 43 6f 6e 74 | 72 6f 6c 73 20 66 6f 72 |KillCont|rols for|
|00000b50| 20 61 6c 6c 20 73 63 72 | 6f 6c 6c 20 62 61 72 73 | all scr|oll bars|
|00000b60| 20 63 72 65 61 74 65 64 | 20 75 73 69 6e 67 0d 09 | created| using..|
|00000b70| 74 68 65 20 4e 65 77 46 | 50 53 63 72 6f 6c 6c 42 |the NewF|PScrollB|
|00000b80| 61 72 20 72 6f 75 74 69 | 6e 65 2e 20 20 2a 2f 0d |ar routi|ne. */.|
|00000b90| 76 6f 69 64 20 44 69 73 | 70 6f 73 65 46 50 53 63 |void Dis|poseFPSc|
|00000ba0| 72 6f 6c 6c 42 61 72 28 | 43 6f 6e 74 72 6f 6c 48 |rollBar(|ControlH|
|00000bb0| 61 6e 64 6c 65 20 63 6f | 6e 74 72 6f 6c 29 3b 0d |andle co|ntrol);.|
|00000bc0| 0d 2f 2a 20 47 65 74 46 | 50 43 74 6c 4d 69 6e 20 |./* GetF|PCtlMin |
|00000bd0| 72 65 74 75 72 6e 73 20 | 74 68 65 20 6d 69 6e 69 |returns |the mini|
|00000be0| 6d 75 6d 20 76 61 6c 75 | 65 20 73 65 74 74 69 6e |mum valu|e settin|
|00000bf0| 67 20 66 6f 72 20 74 68 | 65 20 73 63 72 6f 6c 6c |g for th|e scroll|
|00000c00| 20 62 61 72 2e 20 2a 2f | 0d 66 6c 6f 61 74 20 47 | bar. */|.float G|
|00000c10| 65 74 46 50 43 74 6c 4d | 69 6e 28 43 6f 6e 74 72 |etFPCtlM|in(Contr|
|00000c20| 6f 6c 48 61 6e 64 6c 65 | 20 63 6f 6e 74 72 6f 6c |olHandle| control|
|00000c30| 29 3b 0d 0d 2f 2a 20 47 | 65 74 46 50 43 74 6c 4d |);../* G|etFPCtlM|
|00000c40| 61 78 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6d |ax retur|ns the m|
|00000c50| 61 78 69 6d 75 6d 20 76 | 61 6c 75 65 20 73 65 74 |aximum v|alue set|
|00000c60| 74 69 6e 67 20 66 6f 72 | 20 74 68 65 20 73 63 72 |ting for| the scr|
|00000c70| 6f 6c 6c 20 62 61 72 2e | 20 2a 2f 0d 66 6c 6f 61 |oll bar.| */.floa|
|00000c80| 74 20 47 65 74 46 50 43 | 74 6c 4d 61 78 28 43 6f |t GetFPC|tlMax(Co|
|00000c90| 6e 74 72 6f 6c 48 61 6e | 64 6c 65 20 63 6f 6e 74 |ntrolHan|dle cont|
|00000ca0| 72 6f 6c 29 3b 0d 0d 2f | 2a 20 47 65 74 46 50 43 |rol);../|* GetFPC|
|00000cb0| 74 6c 56 61 6c 75 65 20 | 72 65 74 75 72 6e 73 20 |tlValue |returns |
|00000cc0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 76 61 6c 75 |the curr|ent valu|
|00000cd0| 65 20 73 65 74 74 69 6e | 67 20 66 6f 72 20 74 68 |e settin|g for th|
|00000ce0| 65 20 73 63 72 6f 6c 6c | 20 62 61 72 2e 20 2a 2f |e scroll| bar. */|
|00000cf0| 0d 66 6c 6f 61 74 20 47 | 65 74 46 50 43 74 6c 56 |.float G|etFPCtlV|
|00000d00| 61 6c 75 65 28 43 6f 6e | 74 72 6f 6c 48 61 6e 64 |alue(Con|trolHand|
|00000d10| 6c 65 20 63 6f 6e 74 72 | 6f 6c 29 3b 0d 0d 2f 2a |le contr|ol);../*|
|00000d20| 20 47 65 74 46 50 54 68 | 75 6d 62 56 61 6c 75 65 | GetFPTh|umbValue|
|00000d30| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 76 61 6c | returns| the val|
|00000d40| 75 65 20 6f 66 20 74 68 | 65 20 73 63 72 6f 6c 6c |ue of th|e scroll|
|00000d50| 20 62 61 72 20 62 65 66 | 6f 72 65 20 61 20 74 68 | bar bef|ore a th|
|00000d60| 75 6d 62 0d 09 6f 70 65 | 72 61 74 69 6f 6e 20 74 |umb..ope|ration t|
|00000d70| 6f 6f 6b 20 70 6c 61 63 | 65 2e 20 20 54 68 69 73 |ook plac|e. This|
|00000d80| 20 76 61 6c 75 65 20 69 | 73 20 6f 6e 6c 79 20 64 | value i|s only d|
|00000d90| 65 66 69 6e 65 64 20 77 | 68 65 6e 20 79 6f 75 72 |efined w|hen your|
|00000da0| 20 61 63 74 69 6f 6e 70 | 72 6f 63 0d 09 69 73 20 | actionp|roc..is |
|00000db0| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 74 68 65 20 |called w|ith the |
|00000dc0| 76 61 6c 75 65 20 69 6e | 54 68 75 6d 62 20 73 74 |value in|Thumb st|
|00000dd0| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 70 61 72 74 |ored in |the part|
|00000de0| 20 63 6f 64 65 20 70 61 | 72 61 6d 65 74 65 72 2e | code pa|rameter.|
|00000df0| 20 2a 2f 0d 66 6c 6f 61 | 74 20 47 65 74 46 50 54 | */.floa|t GetFPT|
|00000e00| 68 75 6d 62 56 61 6c 75 | 65 28 43 6f 6e 74 72 6f |humbValu|e(Contro|
|00000e10| 6c 48 61 6e 64 6c 65 20 | 63 6f 6e 74 72 6f 6c 29 |lHandle |control)|
|00000e20| 3b 0d 0d 2f 2a 20 53 65 | 74 46 50 43 74 6c 52 65 |;../* Se|tFPCtlRe|
|00000e30| 66 65 72 65 6e 63 65 20 | 61 6e 64 20 47 65 74 46 |ference |and GetF|
|00000e40| 50 43 74 6c 52 65 66 65 | 72 65 6e 63 65 20 63 61 |PCtlRefe|rence ca|
|00000e50| 6e 20 62 65 20 75 73 65 | 64 20 74 6f 20 61 73 73 |n be use|d to ass|
|00000e60| 6f 63 69 61 74 65 0d 09 | 61 20 33 32 20 62 69 74 |ociate..|a 32 bit|
|00000e70| 20 76 61 6c 75 65 20 77 | 69 74 68 20 61 20 66 6c | value w|ith a fl|
|00000e80| 6f 61 74 20 63 6f 6e 74 | 72 6f 6c 2e 20 20 54 68 |oat cont|rol. Th|
|00000e90| 65 73 65 20 72 6f 75 74 | 69 6e 65 73 20 61 72 65 |ese rout|ines are|
|00000ea0| 20 70 72 6f 76 69 64 65 | 64 20 74 6f 20 70 72 6f | provide|d to pro|
|00000eb0| 76 69 64 65 0d 09 65 71 | 75 69 76 61 6c 65 6e 74 |vide..eq|uivalent|
|00000ec0| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 74 | functio|nality t|
|00000ed0| 6f 20 74 68 65 20 47 65 | 74 43 52 65 66 43 6f 6e |o the Ge|tCRefCon|
|00000ee0| 20 61 6e 64 20 53 65 74 | 43 52 65 66 43 6f 6e 20 | and Set|CRefCon |
|00000ef0| 72 6f 75 74 69 6e 65 73 | 20 61 73 20 74 68 65 0d |routines| as the.|
|00000f00| 09 66 6c 6f 61 74 20 63 | 6f 6e 74 72 6f 6c 20 72 |.float c|ontrol r|
|00000f10| 6f 75 74 69 6e 65 73 20 | 66 6f 75 6e 64 20 68 65 |outines |found he|
|00000f20| 72 65 69 6e 20 75 74 69 | 6c 69 7a 65 20 74 68 65 |rein uti|lize the|
|00000f30| 20 63 6f 6e 74 72 6f 6c | 27 73 20 72 65 66 63 6f | control|'s refco|
|00000f40| 6e 20 66 69 65 6c 64 2e | 20 20 2a 2f 0d 76 6f 69 |n field.| */.voi|
|00000f50| 64 20 53 65 74 46 50 43 | 74 6c 52 65 66 65 72 65 |d SetFPC|tlRefere|
|00000f60| 6e 63 65 28 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |nce(Cont|rolHandl|
|00000f70| 65 20 63 6f 6e 74 72 6f | 6c 2c 20 6c 6f 6e 67 20 |e contro|l, long |
|00000f80| 72 65 66 29 3b 0d 6c 6f | 6e 67 20 47 65 74 46 50 |ref);.lo|ng GetFP|
|00000f90| 43 74 6c 52 65 66 65 72 | 65 6e 63 65 28 43 6f 6e |CtlRefer|ence(Con|
|00000fa0| 74 72 6f 6c 48 61 6e 64 | 6c 65 20 63 6f 6e 74 72 |trolHand|le contr|
|00000fb0| 6f 6c 29 3b 0d 0d 2f 2a | 20 53 65 74 46 50 43 74 |ol);../*| SetFPCt|
|00000fc0| 6c 4d 69 6e 4d 61 78 20 | 73 65 74 27 73 20 74 68 |lMinMax |set's th|
|00000fd0| 65 20 63 6f 6e 74 72 6f | 6c 27 73 20 6d 69 6e 69 |e contro|l's mini|
|00000fe0| 6d 75 6d 20 61 6e 64 20 | 6d 61 78 69 6d 75 6d 20 |mum and |maximum |
|00000ff0| 76 61 6c 75 65 73 2c 20 | 61 64 6a 75 73 74 69 6e |values, |adjustin|
|00001000| 67 0d 09 74 68 65 20 63 | 75 72 72 65 6e 74 20 76 |g..the c|urrent v|
|00001010| 61 6c 75 65 20 73 65 74 | 74 69 6e 67 20 61 6e 64 |alue set|ting and|
|00001020| 20 75 70 64 61 74 69 6e | 67 20 74 68 65 20 64 69 | updatin|g the di|
|00001030| 73 70 6c 61 79 20 61 73 | 20 6e 65 63 65 73 73 61 |splay as| necessa|
|00001040| 72 79 2e 20 20 49 66 20 | 74 68 65 20 6d 69 6e 69 |ry. If |the mini|
|00001050| 6d 75 6d 0d 09 65 71 75 | 61 6c 73 20 74 68 65 20 |mum..equ|als the |
|00001060| 6d 61 78 69 6d 75 6d 2c | 20 74 68 65 20 63 6f 6e |maximum,| the con|
|00001070| 74 72 6f 6c 20 69 73 20 | 64 69 73 61 62 6c 65 64 |trol is |disabled|
|00001080| 2e 20 2a 2f 0d 76 6f 69 | 64 20 53 65 74 46 50 43 |. */.voi|d SetFPC|
|00001090| 74 6c 4d 69 6e 4d 61 78 | 28 43 6f 6e 74 72 6f 6c |tlMinMax|(Control|
|000010a0| 48 61 6e 64 6c 65 20 63 | 6f 6e 74 72 6f 6c 2c 20 |Handle c|ontrol, |
|000010b0| 66 6c 6f 61 74 20 6d 69 | 6e 2c 20 66 6c 6f 61 74 |float mi|n, float|
|000010c0| 20 6d 61 78 29 3b 0d 0d | 2f 2a 20 53 65 74 46 50 | max);..|/* SetFP|
|000010d0| 43 74 6c 56 61 6c 75 65 | 20 73 65 74 73 20 74 68 |CtlValue| sets th|
|000010e0| 65 20 63 6f 6e 74 72 6f | 6c 27 73 20 76 61 6c 75 |e contro|l's valu|
|000010f0| 65 20 61 64 6a 75 73 74 | 69 6e 67 20 74 68 65 20 |e adjust|ing the |
|00001100| 64 69 73 70 6c 61 79 20 | 61 73 20 6e 65 63 65 73 |display |as neces|
|00001110| 73 61 72 79 2e 20 2a 2f | 0d 76 6f 69 64 20 53 65 |sary. */|.void Se|
|00001120| 74 46 50 43 74 6c 56 61 | 6c 75 65 28 43 6f 6e 74 |tFPCtlVa|lue(Cont|
|00001130| 72 6f 6c 48 61 6e 64 6c | 65 20 63 6f 6e 74 72 6f |rolHandl|e contro|
|00001140| 6c 2c 20 66 6c 6f 61 74 | 20 76 61 6c 75 65 29 3b |l, float| value);|
|00001150| 0d 0d 2f 2a 20 54 72 61 | 63 6b 46 50 43 6f 6e 74 |../* Tra|ckFPCont|
|00001160| 72 6f 6c 20 63 61 6c 6c | 73 20 54 72 61 63 6b 43 |rol call|s TrackC|
|00001170| 6f 6e 74 72 6f 6c 20 61 | 70 70 72 6f 70 72 69 61 |ontrol a|ppropria|
|00001180| 74 65 6c 79 20 66 6f 72 | 20 77 68 61 74 65 76 65 |tely for| whateve|
|00001190| 72 20 70 61 72 74 20 74 | 68 65 0d 09 6d 6f 75 73 |r part t|he..mous|
|000011a0| 65 20 69 73 20 63 6c 69 | 63 6b 65 64 20 69 6e 20 |e is cli|cked in |
|000011b0| 69 6e 20 74 68 65 20 63 | 6f 6e 74 72 6f 6c 27 73 |in the c|ontrol's|
|000011c0| 20 76 69 73 69 62 6c 65 | 20 61 72 72 61 79 2e 20 | visible| array. |
|000011d0| 20 54 68 65 20 61 63 74 | 69 6f 6e 70 72 6f 63 20 | The act|ionproc |
|000011e0| 69 73 20 63 61 6c 6c 65 | 64 0d 09 77 69 74 68 20 |is calle|d..with |
|000011f0| 74 68 65 20 76 61 6c 75 | 65 20 69 6e 54 68 75 6d |the valu|e inThum|
|00001200| 62 20 61 66 74 65 72 20 | 61 20 74 68 75 6d 62 2d |b after |a thumb-|
|00001210| 63 6f 6e 74 72 6f 6c 20 | 6f 70 65 72 61 74 69 6f |control |operatio|
|00001220| 6e 20 77 68 65 72 65 20 | 74 68 65 20 63 6f 6e 74 |n where |the cont|
|00001230| 72 6f 6c 27 73 0d 09 76 | 61 6c 75 65 20 68 61 73 |rol's..v|alue has|
|00001240| 20 63 68 61 6e 67 65 64 | 20 73 6f 20 74 68 65 20 | changed| so the |
|00001250| 61 63 74 69 6f 6e 70 72 | 6f 63 20 63 61 6e 20 75 |actionpr|oc can u|
|00001260| 70 64 61 74 65 20 74 68 | 65 20 64 69 73 70 6c 61 |pdate th|e displa|
|00001270| 79 2e 20 2a 2f 0d 76 6f | 69 64 20 54 72 61 63 6b |y. */.vo|id Track|
|00001280| 46 50 43 6f 6e 74 72 6f | 6c 28 57 69 6e 64 6f 77 |FPContro|l(Window|
|00001290| 50 74 72 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 43 |Ptr theW|indow, C|
|000012a0| 6f 6e 74 72 6f 6c 48 61 | 6e 64 6c 65 20 63 6f 6e |ontrolHa|ndle con|
|000012b0| 74 72 6f 6c 2c 20 50 6f | 69 6e 74 20 77 68 65 72 |trol, Po|int wher|
|000012c0| 65 29 3b 0d 0d 0d 23 65 | 6e 64 69 66 0d 00 00 00 |e);...#e|ndif....|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001310| 6f 6c 20 74 6f 0d 72 65 | 66 6c 65 63 74 20 74 68 |ol to.re|flect th|
|00001320| 65 20 6e 65 77 20 72 61 | 6e 67 65 2e 20 49 66 20 |e new ra|nge. If |
|00001330| 0a 46 50 53 63 72 6f 6c | 6c 2e 68 2d 02 00 00 00 |.FPScrol|l.h-....|
|00001340| 54 45 58 54 4d 50 53 20 | 01 00 ff ff ff ff 00 00 |TEXTMPS |........|
|00001350| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 1a c6 ae 7b 07 83 00 00 | 12 4d 00 00 01 ac 20 74 |...{....|.M.... t|
|00001380| 68 65 20 6e 65 77 20 6d | 69 6e 69 6d 75 6d 2e 0d |he new m|inimum..|
|00001390| 0d be 4b 59 20 47 65 74 | 43 74 6c 4d 69 6e 20 0d |..KY Get|CtlMin .|
|000013a0| be 46 43 20 43 6f 6e 74 | 72 6f 6c 73 2e 68 0d be |.FC Cont|rols.h..|
|000013b0| 54 20 46 75 6e 63 74 69 | 6f 6e 0d be 54 4e 20 41 |T Functi|on..TN A|
|000013c0| 39 36 31 0d be 44 20 70 | 61 73 63 61 6c 20 73 68 |961..D p|ascal sh|
|000013d0| 6f 72 74 20 47 65 74 43 | 74 6c 4d 69 6e 28 43 6f |ort GetC|tlMin(Co|
|000013e0| 6e 74 72 6f 6c 48 61 6e | 64 6c 65 20 74 68 65 43 |ntrolHan|dle theC|
|000013f0| 6f 6e 74 72 6f 6c 29 0d | 09 3d 20 30 78 41 39 36 |ontrol).|.= 0xA96|
|00001400| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 4c 45 53 |...H..Ge|neva.LES|
|00001410| 03 df 64 60 4c 5f 5f 0d | 0d 2f 2a 20 66 69 6c 65 |..d`L__.|./* file|
|00001420| 20 44 6f 75 62 6c 00 03 | 00 08 00 65 00 43 01 e8 | Doubl..|...e.C..|
|00001430| 02 69 00 65 00 43 01 e8 | 02 69 b0 5f 53 69 00 00 |.i.e.C..|.i._Si..|
|00001440| 01 28 00 00 03 41 00 00 | 00 00 01 00 00 00 00 1e |.(...A..|........|
|00001450| 00 65 00 43 01 e8 02 69 | 00 65 00 43 01 e8 02 69 |.e.C...i|.e.C...i|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 03 d6 |.....n..|.n...>..|
|00001480| 71 38 26 32 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |q8&2....|.>..MPSR|
|00001490| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000014a0| 03 f0 ff ff 00 00 00 4c | 03 d7 cc 60 00 00 00 00 |.......L|...`....|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+